FROM openjdk:11-jre
VOLUME /tmp
VOLUME /logs
ADD target/*.jar app.jar
ENV TZ=Asia/Shanghai
ENV namespace hlcdp-dev
ENV nacos_addr 192.168.10.124:8848
ENV active dev
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENTRYPOINT ["java","-Xmx512M","-Xms512M","-Dcom.alibaba.nacos.client.naming.ctimeout=60000","-Dnacos.addr=${nacos_addr}","-Djava.security.egd=file:/dev/./urandom","-Dlog-path=/logs","-Dspring.profiles.active=${active}","-Dhlcdp.namespace=${namespace}","-jar","/app.jar"]